
import 'package:flutter/material.dart';

void showSnack(BuildContext context, String msg) {
  final snackBar = SnackBar(content: Text(msg));
  ScaffoldMessenger.of(context).showSnackBar(snackBar);
}

class RedBlock extends StatelessWidget {

  final double _width;
  final double _height;
  const RedBlock(this._width, this._height, {super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: _width,
      height: _height,
      decoration: const BoxDecoration(color: Colors.red),
    );
  }
}
